#include <bits/stdc++.h>

using namespace std;

string str[1000];

int main() {
    string s;
    int cnt = 0;
    while (cin >> s) {
        str[cnt] = s;
        cnt++;
    }

    sort(str,str+cnt);

    cout << str[0] << endl;
    for(int i = 1;i < cnt;i++) {
        if (str[i] != str[i-1]) cout << str[i] << endl;
    }

    return 0;
}s